﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Warehouse.Core;

namespace Tanmia.Warehouse.NHibernateRepository.Mapping
{
    public class InputNoteMap : BaseNoteMap<InputNote>
    {
        public InputNoteMap()
        {
            Id(x => x.InputNoteID).Not.Nullable().GeneratedBy.Identity().Unique();
            References(x => x.Store, "StoreID").Not.Nullable();
            HasMany<StockMovement>(x => x.Details).KeyColumn("InputNoteID").Inverse();
        }
    }
}
